<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    <title>提现记录</title>
    <link rel="stylesheet" type="text/css" href="../../css/base.css">
    <link rel="stylesheet" href="../../css/public.css">
    <style>
        .main{
            padding-bottom: 20px;
        }
        h5{
            font-weight: 100;
            background: rgba(204,204,204,.5);
            font-size: 0.7rem;
            padding: 8px 0 8px 10px ;
        }
        .list{
            font-size: 0.7rem;
        }
        .main .list li{
            padding: 10px;
            border-bottom: 1px solid #cccccc;
        }
        .main .list li .red{
            color: red;
        }
        .main .list li p:last-child{
            margin-top: 3px;
        }
        .main .list li .date{
            color: #777777;
            float: right;
        }
        .pro {
            float: right; color: #ff6666;}
        .finsh { float: right; color: #1ABC9D;}
    </style>
</head>
<body>
<header id="header" class="fixed">
    <div class="header-wrap">
        <div class="header-l">
            <a href="javascript:history.go(-1)">
                <i class="back"></i>
            </a>
        </div>
        <div class="header-title">
            <h1>提现记录</h1>
        </div>
    </div>
</header>
<div class="main" style="margin-top: 40px" id="log_list">

</div>

</body>
</html>
<script type="text/html" id="log-list-tmpl">
    <% var log_list = log_list['data']; %>
    <% if (log_list){%>
    <% for(var i = 0;i<log_list.length;i++){
    var log = log_list[i]['data'];
    var time = log_list[i]['time'];
    %>
    <% if (log.length > 0) {%>
    <div class="list">
        <h5><%=time%></h5><ul>
        <% for(var j = 0;j<log.length;j++){%>
        <li>
            <% if (name == 'member') { %>
            <p>提现金额: <span class="red"><%=log[j]['pdc_amount']%></span> <span class="date"><%=formattime(log[j]['pdc_add_time'])%></span></p>
            <p> 收款卡号: <span><%=log[j]['pdc_bank_no']%></span>
                <% if ((log[j]['pdc_payment_state'] == 0) && (log[j]['state'] == 0)) { %>
                    <span class="pro">处理中</span>
                <% } else if ((log[j]['pdc_payment_state'] == 1) && (log[j]['state'] == 1)) { %>
                    <span class="finsh">已完成</span>
                <% } else if ((log[j]['pdc_payment_state'] == 0) && (log[j]['state'] == 2)) { %>
                    <span class="pro">失败，已退款</span>
                <% } %>
            </p>
            <% }else{ %>
            <p>提现金额: <span class="red"><%=log[j]['money']%></span> <span class="date"><%=formattime(log[j]['addtime'])%></span></p>
            <p> 提现至余额 <span class="finsh">已完成</span></p>
            <% } %>
        </li>
        <%}%>
    </ul>
    </div>
    <%}else {%>
    <h5><%=time%></h5>
    <div class="list_detail">
        <p class="p1" style="text-align: center;color: lightgray">暂无数据</p>
    </div>
    <%}%>
    <%}%>
    <% if (hasmore) {%>
    <li class="loading"><div class="spinner"><i></i></div>明细数据读取中...</li>
    <% } %>
    <%}else {%>
    <div class="nctouch-norecord order">
        <div class="norecord-ico"><i></i></div>
    <dl>
        <dt>您还没有相关的明细</dt>
            <dd>可以去看看哪些想要买的</dd>
        </dl>
        <a href="<%=WapSiteUrl%>" class="btn">随便逛逛</a>
    </div>
    <%}%>
</script>
<script type="text/javascript" src="../../js/zepto.min.js"></script>
<script type="text/javascript" src="../../js/config.js"></script>
<script type="text/javascript" src="../../js/common.js"></script>
<script type="text/javascript" src="../../js/template.js"></script>
<script type="text/javascript" src="../../js/tmpl/cash_log.js"></script>